#include "Menu_Ctrl.h"

/*宏定义*/
#define MENU_EVENT_BUTTON1        1
#define MENU_EVENT_BUTTON2        2
#define MENU_EVENT_BUTTON3        3
#define MENU_EVENT_LONG_BUTTON1   4
#define MENU_EVENT_LONG_BUTTON2   5
#define MENU_EVENT_LONG_BUTTON3   6
#define MENU_EVENT_TWO_BUTTON1    7
#define MENU_EVENT_TWO_BUTTON2    8
#define MENU_EVENT_TWO_BUTTON3    9


void menu_proc(uint8_t event)
{
   switch(event)
   {
   case MENU_EVENT_TWO_BUTTON3:
   {
    if(Get_Wifi_Mode() == 0)
    {
        WiFiMode_Set(0); 
    }
    else
    {
        WiFiMode_Set(1);
    } 
    break;
   }

   default:
   {
       break;
   }
   }
}